/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package chataudio;

import Network.ThreadServerTCP;
import controleur.AbstractChatControleur;
import controleur.ChatControleur;
import model.AbstractChatModel;
import model.ModelChat;
/**
 *
 * @author matthieu
 */
public class ChatAudio {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) throws Exception {
      
        AbstractChatModel model = new ModelChat();
        AbstractChatControleur controleur = new ChatControleur(model);
        
        if ( Constant.debug ) controleur.displayMainFrame();
        controleur.displayUserFrame();
        

        ThreadServerTCP serveurTcp = new ThreadServerTCP(controleur);
        serveurTcp.StartConnection();
        
        controleur.startAutoDiscover(); // repond qu requete autodiscover
    }
}
